package com.heima.feign.admin;

import com.heima.model.admin.dtos.ChannelNameDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("leadnews-admin")
public interface AdminClient {


    @GetMapping("/api/v1/channel/{id}")
    ChannelNameDto findOne(@PathVariable Integer id);
}
